/*
 __   _____  _     ___     _   _ _   _ ___ _____ 
 \ \ / / _ \| |   / _ \   | \ | | \ | |_ _| ____|
  \ V / | | | |  | | | |  |  \| |  \| || ||  _|  
   | || |_| | |__| |_| |  | |\  | |\  || || |___ 
   |_| \___/|_____\___/___|_| \_|_| \_|___|_____|
                     |_____|                     
  (C)2024 YOLO NNIE

 * Description:
        YOLO nnie detection : Yolo nnie project trace helpers

 * License: halokitor @ xidian university
 *
 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef MAIN_PROCESS_H
#define MAIN_PROCESS_H

#include "hi_type.h"
#include "hi_comm_svp.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */

/* -------------------------------------------------------------------------- */
/* --- PRIVATE MACROS ------------------------------------------------------- */
#define BUFFER_SIZE                16    // buffer size

#define SERVER_HOST                "192.168.200.10"
#define SERVER_PORT                9090

/* -------------------------------------------------------------------------- */
/* --- PRIVATE TYPES -------------------------------------------------------- */
/* Plug related information */
typedef struct AiPlugLib {
    uintptr_t yolo_model;
    uintptr_t gesture_model;
} AiPlugLib;

typedef struct tagIPC_IMAGE {
    HI_U64 u64PhyAddr;
    HI_U64 u64VirAddr;
    HI_U32 u32Width;
    HI_U32 u32Height;
} IPC_IMAGE;

/* -------------------------------------------------------------------------- */
/* --- PUBLIC FUNCTION ------------------------------------------------------ */
void SampleYolov5ViVpssVencVo( HI_VOID );

void Application_HandleSig( HI_VOID );

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif /* SAMPLE_SVP_MAIN_H */
